Page({
  data: {
    todayBooks: 2,
    commentText: '',
    canPublish: true,
    showSuccess: false,
    books: [
      { coverUrl: '/images/book.png' },
      { coverUrl: '/images/book-cn.png' }
    ]
  },
  onLoad() {
    // TODO: 拉取今日阅读本数和书籍
  },
  onInput(e) {
    this.setData({ commentText: e.detail.value });
  },
  onPublish() {
    // TODO: 发布打卡API
    this.setData({ showSuccess: true });
    wx.showToast({ title: '打卡成功', icon: 'success' });
  },
  onShare() {
    wx.showToast({ title: '生成分享卡片', icon: 'none' });
  },
  onBack() {
    wx.navigateBack();
  }
}); 